# coding=utf-8

__author__ = 'Arthur Fortes'

from django import forms
from revenda.models import Revenda
from empresas.models import Empresa

class RevendaForm(forms.ModelForm):
    class Meta:
        model = Revenda

    vendedor = forms.ModelChoiceField(queryset=Empresa.objects.filter(tipo__id__icontains=1))